package stattracker;
import java.util.ArrayList;

public class Halo3ComplexGameData implements java.io.Serializable
{
	private static final long serialVersionUID = 1L;
	private ArrayList<Medal> medalsEarned;
	private ArrayList<Weapon> weaponsUsed;
	private ArrayList<String> otherGamers;
	private int kills, assists, deaths, suicides, betrayals, score, currRank;
	private String length, teamColor;
	private boolean isRanked;
	private boolean isBroken;
	
	public Halo3ComplexGameData()
	{
		medalsEarned = new ArrayList<Medal>();
		weaponsUsed = new ArrayList<Weapon>();
		otherGamers = new ArrayList<String>();
		kills = 0; assists = 0; deaths = 0; suicides = 0; betrayals = 0;
		score = 0; currRank = 0;
		length = ""; teamColor = "ffa";
		isRanked = false;
		isBroken = false;
	}
	
	public String getString()
	{
		return " Kills: " + kills +
		 		" Deaths: " + deaths +
		 		" Assists: " + assists +
		 		" Suicides: " + suicides +
		 		" Betrayals: " + betrayals +
		 		" Score: " + score +
		 		" currRank: " + currRank +
		 		" length: " + length;
		 		
	}
	
	public void brokenPage()
	{
		kills = 0;
		assists = 0;
		deaths = 0;
		suicides = 0;
		betrayals = 0;
		score = 0;
		currRank = 0;
		length = "00:08:00";
		isRanked = false;
		isBroken = true;
	}
	
	public ArrayList<String> getOtherGamers()
	{
		return otherGamers;
	}
	
	public void setOtherGamers(ArrayList<String> otherGamers)
	{
		this.otherGamers = otherGamers;
	}
	
	public String getColor()
	{
		return teamColor;
	}
	
	public void setColor(String newColor)
	{
		teamColor = newColor;
	}
	
	public String getLength()
	{
		return length;
	}
	
	public void setLength(String newLength)
	{
		length = newLength;
	}
	
	public int getKills()
	{
		return kills;
	}
	
	public int getAssists()
	{
		return assists;
	}
	
	public int getDeaths()
	{
		return deaths;
	}
	
	public int getSuicides()
	{
		return suicides;
	}
	
	public int getBetrayals()
	{
		return betrayals;
	}
	
	public int getScore()
	{
		return score;
	}
	
	public int getRank()
	{
		return currRank;
	}
	
	public boolean isRanked()
	{
		return isRanked;
	}
	
	public void setKills(int kills)
	{
		this.kills = kills;
	}
	
	public void setAssists(int assists)
	{
		this.assists = assists;
	}
	
	public void setDeaths(int deaths)
	{
		this.deaths = deaths;
	}
	
	public void setSuicides(int suicides)
	{
		this.suicides = suicides;
	}
	
	public void setBetrayals(int betrayals)
	{
		this.betrayals = betrayals;
	}
	
	public void setScore(int score)
	{
		this.score = score;
	}
	
	public void setRank(int rank)
	{
		currRank = rank;
	}
	
	public void setIsRanked(boolean is)
	{
		isRanked = is;
	}
	
	public void addMedal(Medal earned)
	{
		medalsEarned.add(earned);
	}
	
	public void addWeapon(Weapon used)
	{
		weaponsUsed.add(used);
	}
	
	public ArrayList<Medal> getMedals()
	{
		return medalsEarned;
	}
	
	public ArrayList<Weapon> getWeapons()
	{
		return weaponsUsed;
	}

}
